package com.itcast.demo.mapper;

import com.itcast.demo.datamask.annotation.User;
import com.itcast.demo.pojo.Employee;
import com.itcast.demo.pojo.TestEnum;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface EmployeeMapper {
    List<User> selectAll();

    List<User> selectUsers(@Param("offset") int offset,
                           @Param("limit") int limit);

    int insertAndUpdate(Employee employee);

    int insertAndUpdateLists(List<Employee> employees);

    int save(TestEnum testEnum);

    TestEnum getById(Integer userId);
}
